<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link href="../../../../static/css/jquery.dataTables.min.css" rel="stylesheet">
    <link href="../../../../static/css/style.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/productionPlanRegistrationCss.css">
</head>
<body style="background-color: white">
<div class="d1">
    <div class="modal-body container-fluid">
        <div class="table-responsive">
            <div id="example3_wrapper" class="dataTables_wrapper no-footer">
                <table id="example3" class="display dataTable no-footer" style="min-width: 845px;text-align: center"
                       role="grid" aria-describedby="example3_info">
                    <thead>
                    <tr>
                        <th>生产派工单编号</th>
                        <th>产品编号</th>
                        <th>产品名称</th>
                        <th>数量</th>
                        <th>登记时间</th>
                        <th>登记</th>
                    </tr>
                    </thead>
                    <tbody id="tbodyCommodity">

                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="myModal">
    <div class="modal-dialog modal-lg" style="display: flex">
        <div class="modal-content">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="card-title">productionDispatchWorkOrderRegistration</h4>
            </div>

            <!-- 模态框主体 -->
            <div class="modal-body">
                <div class="d1">
                    <div style="margin-top: 10px"><h2>生产派工单</h2>

                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">派工单编号:</span>
                            </div>
                            <input type="text" class="form-control" id="workOrderNumber" readonly>
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">出库单编号:</span>
                            </div>
                            <input type="text" class="form-control" id="outboundOrderNumber" readonly placeholder="">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">产品编号:</span>
                            </div>
                            <input type="text" class="form-control" id="productNumber" readonly>
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">产品名称:</span>
                            </div>
                            <input type="text" class="form-control" id="productName" readonly placeholder="">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">描述:</span>
                            </div>
                            <input type="text" class="form-control" id="description" readonly>
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">数量:</span>
                            </div>
                            <input type="text" class="form-control" id="quantity" readonly placeholder="">
                        </div>
                    </div>

                    <div class="container-fluid row">
                        <table class="table table-bordered" style="text-align: center">
                            <thead>
                            <tr>
                                <th>工序名称</th>
                                <th>设计工时数</th>
                                <th>实际工时数</th>
                                <th>设计工时成本(￥)</th>
                                <th>实际工时成本(￥)</th>
                                <th>设计物料成本(￥)</th>
                                <th>实际物料成本(￥)</th>
                                <th>工序登记</th>
                                <th>工序交接状态</th>
                            </tr>
                            </thead>
                            <tbody id="tbody">


                            </tbody>
                        </table>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">设计工时总成本:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="totalCostOfDesignManHours">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">设计物料总成本:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="totalDesignMaterialCost">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">实际工时总成本:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="actualTotalCostOfLabor">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">实际物料总成本:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="actualTotalMaterialCost">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">登记人:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="registerPerson">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">登记时间:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="checkInTime">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">审核人:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="reviewer">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">审核时间:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="reviewTime">
                        </div>
                    </div>
                    <div class="col" style="margin-bottom: 10px">
                        <span><h6>备注:</h6></span>
                        <textarea class="form-control" rows="4" id="auditOpinion"
                                  style="height: 115px;border-color: #c7c7c7;resize:none"></textarea>
                    </div>
                </div>

            </div>

            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
<div class="modal fade" id="myModal1">
    <div class="modal-dialog modal-lg" style="display: flex">
        <div class="modal-content">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="card-title">processBillOfMaterial</h4>
            </div>

            <!-- 模态框主体 -->
            <div class="modal-body">
                <div class="d1">
                    <div style="margin-top: 10px"><h2>工序物料单</h2>

                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">派工单编号:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="workOrderNumber1">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">工序名称:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="processName">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">负责人:</span>
                            </div>
                            <input type="text" class="form-control" id="personInCharge" required placeholder="请输入工序负责人">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">设计工时数:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="designWorkingHours">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">已用工时数:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="hoursElapsed">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">本次工时数:</span>
                            </div>
                            <input type="number" class="form-control" id="currentWorkingHours" required placeholder="请输入本次工时数">
                        </div>
                    </div>
                    <div class="container-fluid row">
                        <table class="table table-bordered" style="text-align: center">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>物料名称</th>
                                <th>物料编号</th>
                                <th>设计数量</th>
                                <th>物料单价</th>
                                <th>本次数量</th>
                            </tr>
                            </thead>
                            <tbody id="tbBody" style="text-align: center">


                            </tbody>
                        </table>
                    </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">登记人:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="registrant">
                        </div>
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">登记时间:</span>
                            </div>
                            <input type="text" class="form-control" readonly id="registrationTime">
                        </div>
                    </div>

                </div>

            </div>


            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-info"  id="submitMaterialProduction">提交</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
<div class="modal fade" id="myModal2">
    <div class="modal-dialog modal-sm" style="display: flex">
        <div class="modal-content" style="display:flex;justify-content: center;align-items: center">

            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="card-title">交接工序</h4>
            </div>
                    <div class="container-fluid row">
                        <div class="input-group mb-4 col">
                            <div class="input-group-prepend">
                                <span class="input-group-text">本次合格数量:</span>
                            </div>
                            <input type="number" class="form-control"  id="qualifiedQuantity" value="1">
                        </div>
                    </div>
            <!-- 模态框底部 -->
            <div class="modal-footer">
                <button type="button" class="btn btn-info"  id="handover">交接</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
            </div>

        </div>
    </div>
</div>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/productionRegistrationJs.js"></script>
</body>
</html>